package io.geekidea.springbootplus.system.mapper;

import io.geekidea.springbootplus.framework.core.pagination.Paging;
import io.geekidea.springbootplus.system.entity.SysCategory;

import java.io.Serializable;

public interface SysCategoryMapper {
    boolean saveCategory(SysCategory category) throws Exception;
    boolean updateCategory(SysCategory category) throws Exception;
    boolean deleteCategoryById(Integer id) throws Exception;
    SysCategory getCategoryById(Serializable id) throws Exception;
    Paging<SysCategory> getCategoryPageList() throws Exception;
    Paging<SysCategory> getChildrenCategoryByParentId(Integer parentId) throws Exception;
}
